package com.cody.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Cody
 * @date 2021/4/9 - 20:32
 */
public class Comment {
    private int commentId;
    private String commentReviewId;
    private String commentReviewName;
    private Date commentTime;
    private String commentContent;
    private int parentCommentId;
    private int questionId;
    private int commentType;






    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public String getCommentReviewId() {
        return commentReviewId;
    }

    public void setCommentReviewId(String commentReviewId) {
        this.commentReviewId = commentReviewId;
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public int getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(int parentCommentId) {
        this.parentCommentId = parentCommentId;
    }

    public int getQuestionId() {
        return questionId;
    }

    public void setQuestionId(int questionId) {
        this.questionId = questionId;
    }

    public int getCommentType() {
        return commentType;
    }

    public void setCommentType(int commentType) {
        this.commentType = commentType;
    }

    public String getCommentReviewName() {
        return commentReviewName;
    }

    public void setCommentReviewName(String commentReviewName) {
        this.commentReviewName = commentReviewName;
    }


    public Comment() {
    }

    public Comment(int commentId, String commentReviewId, String commentReviewName, Date commentTime, String commentContent, int parentCommentId, int questionId, int commentType) {
        this.commentId = commentId;
        this.commentReviewId = commentReviewId;
        this.commentReviewName = commentReviewName;
        this.commentTime = commentTime;
        this.commentContent = commentContent;
        this.parentCommentId = parentCommentId;
        this.questionId = questionId;
        this.commentType = commentType;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", commentReviewId='" + commentReviewId + '\'' +
                ", commentReviewName='" + commentReviewName + '\'' +
                ", commentTime=" + commentTime +
                ", commentContent='" + commentContent + '\'' +
                ", parentCommentId=" + parentCommentId +
                ", questionId=" + questionId +
                ", commentType=" + commentType +
                '}';
    }
}
